import { ICoreApp } from './app'

export interface ICoreGroup {
    id: number
    app_id: ICoreApp['id']
    name: string
    sort: number
    remark: string
}

export type ICoreGroupEditParameter = Omit<ICoreGroup, 'id' | 'sort'> & {
    id?: ICoreGroup['id']
    sort?: ICoreGroup['sort']
}

export type ICoreGroupListParameter = {
    app_id?: ICoreApp['id']
}

export type ICoreGroupDeleteParameter = { id: ICoreGroup['id'] }

export type ICoreGroupPinia = {
    list: ICoreGroup[]
}
